package com.yykj.im.center.client.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SystemNoticeDto {

    @ApiModelProperty(value = "消息id")
    public String id;

    @ApiModelProperty(value = "如果发送成功 微信返回的taskId")
    public String msgKey;

    @ApiModelProperty(value = "消息标题")
    public String title;

    @ApiModelProperty(value = "消息内容")
    public String content;

    @ApiModelProperty(value = "链接地址,点击可跳转H5页面")
    public String url;

    @ApiModelProperty(value = "备注")
    public String remark;

    @ApiModelProperty("预计发送日期,yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime sendTime;

    @ApiModelProperty("真正发送日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime doSendTime;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("性别,0:全部,1:男,2:女")
    private int gender;

    @ApiModelProperty("医院ID")
    private int hospitalId;

    @ApiModelProperty("部门ID")
    private int departmentId;

    @ApiModelProperty(value = "发送用户")
    List<UserInfoDto> users;

    @ApiModelProperty(value = "发送状态 0:未发送,1:已发送,2:发送失败")
    public int status;

}
